package com.nondo.dean.product.model.result;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.product.domain.Product;
import com.nondo.dean.product.domain.ProductCategory;
import com.nondo.dean.product.domain.Series;
import com.nondo.dean.product.model.SeriesBean;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author xiaofan
 * @Description:
 * @throws
 * @date 2018-04-0910:11
 * @Version 0.1
 */
public class ProductBeanResult {
    private List<SeriesBean> seriesList;
    private List<ProductCategory> productCategoryList;
    private List<ProductResult> productResultList;




    public List<SeriesBean> getSeriesList() {
        return seriesList;
    }

    public void setSeriesList(List<SeriesBean> seriesList) {
        this.seriesList = seriesList;
    }

    public List<ProductCategory> getProductCategoryList() {
        return productCategoryList;
    }

    public void setProductCategoryList(List<ProductCategory> productCategoryList) {
        this.productCategoryList = productCategoryList;
    }

    public List<ProductResult> getProductResultList() {
        return productResultList;
    }

    public void setProductResultList(List<ProductResult> productResultList) {
        this.productResultList = productResultList;
    }

    public static SeriesBean covertToBean(Series series) {
        SeriesBean seriesBean = new SeriesBean();
        BeanUtils.copy(series, seriesBean);
        return seriesBean;
    }

    public static ProductBeanResult copyBean(Product product) {
        ProductBeanResult productBeanResult = new ProductBeanResult();
        BeanUtils.copy(product, productBeanResult);
        return productBeanResult;
    }
}
